{% load i18n %}
{% load menu %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

	<meta http-equiv="X-UA-Compatible" content="IE=7" />

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<title>
        {% block title %}
            {% if title %} {{ title }}
            {% else %} {% trans 'Admin &#9679; dashboard' %}
            {% endif %}
        {% endblock %}
    </title>

    <style type="text/css" media="all">
		@import url("/static/css/style.css");
		@import url("/static/css/jquery.wysiwyg.css");
		@import url("/static/css/facebox.css");
		@import url("/static/css/visualize.css");
		@import url("/static/css/date_input.css");
        @import url("/static/css/custom.css");
    </style>

	<!--[if lt IE 8]><style type="text/css" media="all">@import url("/static/css/ie.css");</style><![endif]-->
    {% block more_styles %}
        {{ more_styles }}
    {% endblock %}
</head>

<body>

	<div id="hld">

		<div class="wrapper">		<!-- wrapper begins -->

			<div id="header">
                <div class="hdrl"></div>
				<div class="hdrr"></div>

				<h1><a href="#">{% trans 'Administration panel' %}</a></h1>

				<ul id="nav">
					<li class="{% active request 'dashboard' %}">
                        <a href="{% url dashboard %}">{% trans 'Dashboard' %}</a>
                    </li>
					<li class="{% active request 'documents' %}">
                        <a href="/manage/documents">{% trans 'Documents' %}</a>
						<ul>
							<li><a href="{% url new_document %}">{% trans 'Add document' %} +</a></li>
                            <li><a href="#">{% trans 'Documents' %}</a></li>
                            <li><a href="{% url list_pictures %}">{% trans 'Pictures' %}</a></li>
                            <li><a href="#">{% trans 'Videos' %}</a></li>
                            <li><a href="#">{% trans 'Others' %}</a></li>
						</ul>
					</li>
					<li class="{% active request 'programs' %}">
                        <a href="{% url list_programs %}">{% trans 'Programs' %}</a>
                    </li>
                    <li class="{% active request 'regions' %}">
                        <a href="{% url list_regions %}">{% trans 'Regions' %}</a>
                    </li>
                    <li class="{% active request 'topics' %}">
                        <a href="{% url list_topics %}">{% trans 'Topics' %}</a>
                    </li>
                    {% block additional_links %}{{ additional_links }}{% endblock %}
				</ul>

				<p class="user">{% trans 'Hello' %}, <a href="#">{{ request.user.username }}</a> | <a href="{% url logout %}?next=/dashboard">Logout</a></p>
			</div>		<!-- #header ends -->

            <div class="block">

				<div class="block_head">
					<div class="bheadl"></div>
					<div class="bheadr"></div>

                    <p class="breadcrumb">
                        {% block breadcrumb %}
                        <a href="{% url dashboard %}">Dashboard</a>
                        {% endblock %}
                    </p>

				</div>		<!-- .block_head ends -->

                <div class="block_content">
                {% block system_messages %}{% endblock %}
                </div>

				<div class="block_content">
                    <div class="bheadl"></div>
					<div class="bheadr"></div>
                    {% block block_content %}
                        {{ block_content }}
                    {% endblock %}
				</div>		<!-- .block_content ends -->

				<div class="bendl"></div>
				<div class="bendr"></div>

			</div>		<!-- .block ends -->

            <div id="footer">

				<p class="left"><a href="#">YourWebsite.com</a></p>
				<p class="right">powered by <a href="http://themeforest.net/item/adminus-beautiful-admin-panel-interface/94668?ref=enstyled">Adminus</a> v1.4</p>

			</div>


		</div>						<!-- wrapper ends -->

	</div>		<!-- #hld ends -->


	<!--[if IE]><script type="text/javascript" src="/static/js/excanvas.js"></script><![endif]-->
	<script type="text/javascript" src="/static/js/jquery.js"></script>
	<script type="text/javascript" src="/static/js/jquery.img.preload.js"></script>
	<script type="text/javascript" src="/static/js/jquery.filestyle.mini.js"></script>
	<script type="text/javascript" src="/static/js/jquery.wysiwyg.js"></script>
	<script type="text/javascript" src="/static/js/jquery.date_input.pack.js"></script>
	<script type="text/javascript" src="/static/js/facebox.js"></script>
	<script type="text/javascript" src="/static/js/jquery.visualize.js"></script>
	<script type="text/javascript" src="/static/js/jquery.visualize.tooltip.js"></script>
	<script type="text/javascript" src="/static/js/jquery.select_skin.js"></script>
	<script type="text/javascript" src="/static/js/jquery.tablesorter.min.js"></script>
	<script type="text/javascript" src="/static/js/ajaxupload.js"></script>
	<script type="text/javascript" src="/static/js/jquery.pngfix.js"></script>
	<script type="text/javascript" src="/static/js/custom.js"></script>

    {% block scripts %}
        {{ scripts }}
    {% endblock %}

</body>
</html>
